<template>
<CommonCart title="累计销售额" :value="salesToday" >
    <template >
        <div class="compareWrapper">
          <div class="compare">
            <span>日同比</span> <span class="emphasis">{{salesGrowthLastDay}}</span>
            <div class="increase"></div>
          </div>
          <div class="compare">
             <span>月同比</span> <span class="emphasis">{{salesGrowthLastMonth}}</span>
             <span class="decrease"></span>
          </div>
        </div>
    </template>

    <template #footer >
        <span >昨日销售额 </span>
        <span class="emphasis">{{salesLastDay}} </span>
    </template>
</CommonCart>
</template>

<script>
import commonCartMixin from '../../mixins/commonCartMixin'
import commonDataMixin from '../../mixins/commonDataMixin'
export default {
    name: 'TotalSales',
    mixins: [commonCartMixin, commonDataMixin],

}
</script>

<style  lang='scss' scoped>
.compareWrapper{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.compare{
    display: flex;
    align-items: center;
    height: 50%;
    margin-top: 3px;
    font-size: 12px;
    color: #666;

}
span{
    font-size: 12px;
}

</style>
